package com.ccrfid.rmc6.pojo.dto;

import com.ccrfid.rmc6.entity.personnel.PersonnelPrisonerView;
import com.ccrfid.rmc6.entity.personnel.PersonnelView;
import com.vividsolutions.jts.geom.Point;

import java.sql.Date;

public class PersonnelSearchDto {
    private Long id;
    private String personnelName;
    private String nameAcronym;
    private Long cardNumber;
    private String personnelSn;
    private String idNumber;
    private Integer personnelType;
    private String personnelTypeName;
    private Long orgId;
    private String orgName;
    private Integer enabled;
    private Integer gender;
    private Date birthday;
    private String phoneNumber;
    private String shortNumber;
    private Integer onlineStatus;
    private Integer cutoffStatus;
    private Integer lowpowerStatus;
    private Integer heartRate;
    private Integer locatorAddress;
    private Integer floorNumber;
    private Point pos;

    private Integer isMajorCriminalOffender;
    private Integer isFocusedPrisoner;
    private Integer isDeathPrisoner;
    private Integer isInfectedPrisoner;
    private String hexNumber;

    public PersonnelSearchDto() {
    }

    public PersonnelSearchDto(PersonnelView personnelView) {
        this.id = personnelView.getId();
        this.personnelName = personnelView.getPersonnelName();
        this.nameAcronym = personnelView.getNameAcronym();
        this.cardNumber = personnelView.getCardNumber();
        this.personnelSn = personnelView.getPersonnelSn();
        this.idNumber = personnelView.getIdNumber();
        this.personnelType = personnelView.getPersonnelType();
        this.personnelTypeName = personnelView.getPersonnelTypeName();
        this.orgId = personnelView.getOrgId();
        this.orgName = personnelView.getOrgName();
        this.enabled = personnelView.getEnabled();
        this.gender = personnelView.getGender();
        this.birthday = personnelView.getBirthday();
        this.phoneNumber = personnelView.getPhoneNumber();
        this.shortNumber = personnelView.getShortNumber();
        this.onlineStatus = personnelView.getOnlineStatus();
        this.cutoffStatus = personnelView.getCutoffStatus();
        this.lowpowerStatus = personnelView.getLowpowerStatus();
        this.heartRate = personnelView.getHeartRate();
        this.locatorAddress = personnelView.getLocatorAddress();
        this.floorNumber = personnelView.getFloorNumber();
        this.pos = personnelView.getPos();
        this.hexNumber = personnelView.getHexNumber();
    }

    public PersonnelSearchDto(PersonnelPrisonerView personnelView) {
        this.id = personnelView.getId();
        this.personnelName = personnelView.getPersonnelName();
        this.nameAcronym = personnelView.getNameAcronym();
        this.cardNumber = personnelView.getCardNumber();
        this.personnelSn = personnelView.getPersonnelSn();
        this.idNumber = personnelView.getIdNumber();
        this.personnelType = personnelView.getPersonnelType();
        this.personnelTypeName = personnelView.getPersonnelTypeName();
        this.orgId = personnelView.getOrgId();
        this.orgName = personnelView.getOrgName();
        this.enabled = personnelView.getEnabled();
        this.gender = personnelView.getGender();
        this.birthday = personnelView.getBirthday();
        this.phoneNumber = personnelView.getPhoneNumber();
        this.shortNumber = personnelView.getShortNumber();
        this.onlineStatus = personnelView.getOnlineStatus();
        this.cutoffStatus = personnelView.getCutoffStatus();
        this.lowpowerStatus = personnelView.getLowpowerStatus();
        this.heartRate = personnelView.getHeartRate();
        this.locatorAddress = personnelView.getLocatorAddress();
        this.floorNumber = personnelView.getFloorNumber();
        this.pos = personnelView.getPos();

        this.isMajorCriminalOffender = personnelView.getIsMajorCriminalOffender();
        this.isFocusedPrisoner = personnelView.getIsFocusedPrisoner();
        this.isDeathPrisoner = personnelView.getIsDeathPrisoner();
        this.isInfectedPrisoner = personnelView.getIsInfectedPrisoner();
        this.hexNumber = personnelView.getHexNumber();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPersonnelName() {
        return personnelName;
    }

    public void setPersonnelName(String personnelName) {
        this.personnelName = personnelName;
    }

    public String getNameAcronym() {
        return nameAcronym;
    }

    public void setNameAcronym(String nameAcronym) {
        this.nameAcronym = nameAcronym;
    }

    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getPersonnelSn() {
        return personnelSn;
    }

    public void setPersonnelSn(String personnelSn) {
        this.personnelSn = personnelSn;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public Integer getPersonnelType() {
        return personnelType;
    }

    public void setPersonnelType(Integer personnelType) {
        this.personnelType = personnelType;
    }

    public String getPersonnelTypeName() {
        return personnelTypeName;
    }

    public void setPersonnelTypeName(String personnelTypeName) {
        this.personnelTypeName = personnelTypeName;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getShortNumber() {
        return shortNumber;
    }

    public void setShortNumber(String shortNumber) {
        this.shortNumber = shortNumber;
    }

    public Integer getOnlineStatus() {
        return onlineStatus;
    }

    public void setOnlineStatus(Integer onlineStatus) {
        this.onlineStatus = onlineStatus;
    }

    public Integer getCutoffStatus() {
        return cutoffStatus;
    }

    public void setCutoffStatus(Integer cutoffStatus) {
        this.cutoffStatus = cutoffStatus;
    }

    public Integer getLowpowerStatus() {
        return lowpowerStatus;
    }

    public void setLowpowerStatus(Integer lowpowerStatus) {
        this.lowpowerStatus = lowpowerStatus;
    }

    public Integer getHeartRate() {
        return heartRate;
    }

    public void setHeartRate(Integer heartRate) {
        this.heartRate = heartRate;
    }

    public Integer getLocatorAddress() {
        return locatorAddress;
    }

    public void setLocatorAddress(Integer locatorAddress) {
        this.locatorAddress = locatorAddress;
    }

    public Integer getFloorNumber() {
        return floorNumber;
    }

    public void setFloorNumber(Integer floorNumber) {
        this.floorNumber = floorNumber;
    }

    public Point getPos() {
        return pos;
    }

    public void setPos(Point pos) {
        this.pos = pos;
    }

    public Integer getIsMajorCriminalOffender() {
        return isMajorCriminalOffender;
    }

    public void setIsMajorCriminalOffender(Integer isMajorCriminalOffender) {
        this.isMajorCriminalOffender = isMajorCriminalOffender;
    }

    public Integer getIsFocusedPrisoner() {
        return isFocusedPrisoner;
    }

    public void setIsFocusedPrisoner(Integer isFocusedPrisoner) {
        this.isFocusedPrisoner = isFocusedPrisoner;
    }

    public Integer getIsDeathPrisoner() {
        return isDeathPrisoner;
    }

    public void setIsDeathPrisoner(Integer isDeathPrisoner) {
        this.isDeathPrisoner = isDeathPrisoner;
    }

    public Integer getIsInfectedPrisoner() {
        return isInfectedPrisoner;
    }

    public void setIsInfectedPrisoner(Integer isInfectedPrisoner) {
        this.isInfectedPrisoner = isInfectedPrisoner;
    }

    public String getHexNumber() {
        return hexNumber;
    }

    public void setHexNumber(String hexNumber) {
        this.hexNumber = hexNumber;
    }
}
